<div class="contents_left w152 OverH">
	<div class="pic_face">
		<a href="{:U('space/View/index','uid='.$userInfo['uid'])}"><img src="{$userInfo['uid']|getUserFace}" width="120" /></a>
		<php>if(isExpert($userInfo['uid'])){</php><span class="pro_pic">&nbsp;</span><php>}</php>
	</div>

	<php>
		$module = (MODULE_NAME)?MODULE_NAME:'view';
		$action = (ACTION_NAME)?ACTION_NAME:'index';
		$usex = ($userInfo['sex']=='MM')?L(left_0020):L(left_0019);
		$menu_list = array(	
			$usex.L(left_0014) =>  array(
				$usex.L(left_0001)         => 'View_index',
				$usex.L(left_0013)         => 'View_profile',		
				$usex.L(left_0012)         => 'View_feed',
				$usex.L(left_0011)         => 'View_wall',
				$usex.L(left_0017)    => 'View_followme',
				$usex.L(left_0000)    => 'View_followyou',
				$usex.L(left_0010)    => 'View_track',
			),
			$usex.L(left_0009) => 'View_record',
			$usex.L(left_0008) => 'Blog_blogList',		
			$usex.L(left_0007) => array(
			     $usex.L(left_0006)       => 'Ask_myAsk',
			     $usex.L(left_0005)       => 'Ask_myAnswer',
			     L(left_0015, array('usex'=>$usex))       => 'Ask_myHelp',		
			),			
			$usex.L(left_0004) => array(
				$usex.L(left_0022)    =>     'Bbs_post',
				$usex.L(left_0023)    =>     'Bbs_reply',
			),
			$usex.L(left_0003) => 'View_group', 
			$usex.L(left_0002) => 'View_share',
			$usex.L(left_0021) => 'View_wiki',
		);	  
	</php>

	<div class="sidebar_nav">
	
		<ul rel="menulist">
		<php>foreach($menu_list as $key=>$val){</php>
		<php>$class = (in_array($module.'_'.$action,array_values($val)) || $module.'_'.$action==$val)?'on':'off';$ii=1;</php>
			 <li class="{$class}" rel="lists">
				<dl>
				  <php>if(is_array($val)){</php>
					 <dt onclick="change(this);"><a href="javascript:void(0)">{$key}</a></dt>
					  <php>$counts = count($val)</php>			  
					  <php>foreach($val as $k=>$v){</php>
					  <php>$ks = explode('_',$v);$btm = ($counts==$ii)?'btm':'';$btmt = ($v==$module.'_'.$action)?'fB':''</php>
							<dd class="{$btm} {$btmt}"><a href="{:U('space/'.$ks[0].'/'.$ks[1],'uid='.$userInfo['uid'])}">{$k}</a></dd>
					  <php>$ii++;}</php>
				  <php>}else{</php>
					   <php>$ks = explode('_',$val);</php>
					   <dt><a href="{:U('space/'.$ks[0].'/'.$ks[1],'uid='.$userInfo['uid'])}">{$key}</a></dt>
				  <php>}</php>
				</dl>
			</li>
		<php>}</php>
		</ul>
	</div>
</div>

<script>
function change(o){
	$("ul[rel='menulist'] li[class='on']").attr('class','off');

	if($(o).parents("li[rel='lists']").attr('class')=='off'){
		$(o).parents("li[rel='lists']").attr('class','on');
	}else{
		$(o).parents("li[rel='lists']").attr('class','off');
	}
}
</script>